package com.iotechn.unimall.admin.api.treeOrderDetails;
import com.iotechn.unimall.core.annotation.HttpMethod;
import com.iotechn.unimall.core.annotation.HttpOpenApi;
import com.iotechn.unimall.core.annotation.HttpParam;
import com.iotechn.unimall.core.annotation.HttpParamType;
import com.iotechn.unimall.core.annotation.param.NotNull;
import com.iotechn.unimall.core.exception.ServiceException;
import com.iotechn.unimall.data.domain.TreeDetailOrderDO;
import com.iotechn.unimall.data.model.Page;

/**
 *
 *
 * @author hct
 * @email 77802226@qq.com
 * @date 2020-07-21 22:35:48
 */
@HttpOpenApi(group = "admin.treeOrderDetails", description = "")
public interface AdminTreeOrderDetailsService {

    @HttpMethod(description = "列表", permission = "list", permissionParentName = "果树管理", permissionName = "列表")
    public Page<TreeDetailOrderDO> list(
            @HttpParam(name = "pageNo", type = HttpParamType.COMMON, description = "页码", valueDef = "1") Integer page,
            @HttpParam(name = "limit", type = HttpParamType.COMMON, description = "页长度", valueDef = "20") Integer limit,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "修改", permission = "generator:treeorderdetails:update", permissionParentName = "果树管理", permissionName = "修改")
    public String update(
            @NotNull @HttpParam(name = "treeOrderDetailsDO", type = HttpParamType.COMMON, description = "") TreeDetailOrderDO treeOrderDetailsDO,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

//    @HttpMethod(description = "删除", permission = "generator:treeorderdetails:delete", permissionParentName = "果树管理", permissionName = "删除")
//    public String delete(
//            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "删除Id") Long id,
//            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

    @HttpMethod(description = "详情", permission = "generator:treeorderdetails:detail", permissionParentName = "果树管理", permissionName = "详情")
    public TreeDetailOrderDO detail(
            @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "Id") Long id,
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId) throws ServiceException;

//    @HttpMethod(description = "激活冻结", permission = "generator:treeorderdetails:update", permissionParentName = "果树管理", permissionName = "激活")
//        public Boolean updateStatus(
//                @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId,
//                @NotNull @HttpParam(name = "id", type = HttpParamType.COMMON, description = "用户信息") Long id,
//                @NotNull @HttpParam(name = "status", type = HttpParamType.COMMON, description = "用户信息") Integer status) throws ServiceException;

}

